package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;


/**
 * 点巡检计划目标对象 MB_ERP_EQUIPMENT_UPKEEP_PLAN_TARGET
 *
 * @author Cheng
 * @date 2023-07-19
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_UPKEEP_PLAN_TARGET")
@Schema(description="点巡检计划目标")
public class EquipmentUpkeepPlanTarget extends BaseEntity {

private static final long serialVersionUID=1L;

    @Id
    @Generator
    @Column(name = "ID_")
    @Schema(description = "主键")
    private String id;

    @Column(name = "CHECK_TYPE_")
    @Schema(description = "点巡检类别")
    private String checkType;

    @Column(name = "TARGET_ID_")
    @Schema(description = "点巡检目标")
    private String targetId;

    @Column(name = "PLAN_ID_")
    @Schema(description = "点巡检计划ID")
    private String planId;

    @Column(name = "TARGET_NAME_")
    @Schema(description = "目标名称")
    private String targetName;

    @Column(name = "TARGET_CODE_")
    @Schema(description = "目标编码")
    private String targetCode;

    @Column(name = "TARGET_SPEC_")
    @Schema(description = "目标规格")
    private String targetSpec;

    @Transient
    private String categoryId;


}
